<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="/shop/E-shop/Public/css/bootstrap.css">
</head>
<body>
<div>
	<a href="<?php echo U('add');?>">
      	<h2>
      		<span class="glyphicon glyphicon-plus-sign"></span>
      	    添加新信息
      	</h2>
    </a>
</div>
<div class="table-responsive">
	<table class="table table-striped table-bordered table-hover table-condensed text-center">
		<thead>
			<tr>
				<th class="text-center">商品ID</th>
				<th class="text-center">商品名称</th>
				<th class="text-center">商品分类</th>
				<th class="text-center">商品上架时间</th>	
				<th class="text-center">商品是否推荐</th>
				<th class="text-center">商品状态</th>
				<th class="text-center">商品详情</th>		
				<th class="text-center">修改/删除</th>
			</tr>
		</thead>
		<tbody>
			<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$tab): $mod = ($i % 2 );++$i;?><tr>
					<td><?php echo ($tab["id"]); ?></td>
					<td><?php echo ($tab["name"]); ?></td>
					<td>
						<?php echo ($tab["class"]["cname"]); ?>
					</td>	
					<td><?php echo ($tab["putaway_time"]); ?></td>	
					<td><?php echo ($tab["recommend"]); ?></td>	
					<td><?php echo ($tab["status"]); ?></td>	
					<td><a href="<?php echo U('increase');?>?id=<?php echo ($tab["id"]); ?>">详情</a></td>
					<td>
						<a href="<?php echo U('save');?>?id=<?php echo ($tab["id"]); ?>">[修改]</a>
						<a href="<?php echo U('cancel');?>?id=<?php echo ($tab["id"]); ?>" onclick="return confirm('确定将此记录删除?')">[删除]</a>
					</td>
				</tr><?php endforeach; endif; else: echo "" ;endif; ?>
		</tbody>
	</table>
	<div class="result page text-center"><h4><?php echo ($page); ?></h4></div>
</div>
</body>

</html>